import { defineStore } from "pinia";
import { isMobile } from "../utils/common";
export const commonStore = defineStore("common", {
  state: () => {
    return {
      isMobile: isMobile(),
    };
  },
  actions: {
    // 缓存用户信息数据
    setIsMobile(bool) {
      this.isMobile = bool;
    },
  },
});
